-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/aws_instance: Set public_dns
and public_ip
as newly Computed if instance is stopped/started
#40710
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…p` attributes when changing `instance_type`, `user_data`, or `user_data_base64`.
…ly Computed if there was a value.
Community NoteVoting for Prioritization
For Submitters
|
github-actions
bot
added
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
service/ec2
Issues and PRs that pertain to the ec2 service.
prioritized
Part of the maintainer teams immediate focus. To be addressed within the current quarter.
labels
Dec 27, 2024
nam054
approved these changes
Dec 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
> make testacc TESTARGS='-run=^TestAccEC2Instance_changeInstanceType' PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run=^TestAccEC2Instance_changeInstanceType -timeout 360m
2024/12/30 11:57:40 Initializing Terraform AWS Provider...
=== RUN TestAccEC2Instance_changeInstanceType
=== PAUSE TestAccEC2Instance_changeInstanceType
=== RUN TestAccEC2Instance_changeInstanceTypeReplace
=== PAUSE TestAccEC2Instance_changeInstanceTypeReplace
=== RUN TestAccEC2Instance_changeInstanceTypeAndUserData
=== PAUSE TestAccEC2Instance_changeInstanceTypeAndUserData
=== RUN TestAccEC2Instance_changeInstanceTypeAndUserDataBase64
=== PAUSE TestAccEC2Instance_changeInstanceTypeAndUserDataBase64
=== CONT TestAccEC2Instance_changeInstanceType
=== CONT TestAccEC2Instance_changeInstanceTypeAndUserData
=== CONT TestAccEC2Instance_changeInstanceTypeAndUserDataBase64
=== CONT TestAccEC2Instance_changeInstanceTypeReplace
--- PASS: TestAccEC2Instance_changeInstanceTypeAndUserDataBase64 (463.68s)
--- PASS: TestAccEC2Instance_changeInstanceType (548.22s)
--- PASS: TestAccEC2Instance_changeInstanceTypeReplace (606.09s)
--- PASS: TestAccEC2Instance_changeInstanceTypeAndUserData (701.85s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 708.698s
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Addresses a defect in current functionality.
prioritized
Part of the maintainer teams immediate focus. To be addressed within the current quarter.
service/ec2
Issues and PRs that pertain to the ec2 service.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Set
public_dns
andpublic_ip
as newly Computed if anaws_instance
update would stop then start the instance as this may result in an IP address change -- see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#concepts-public-addresses.Relations
Closes #6781.
Closes #10720.
Closes #20651.
Closes #24690.
Closes #33726.
Output from Acceptance Testing